package pl.edu.pk.mech.kkbus.component;

import org.springframework.stereotype.Component;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

@Component
public class MyEntityManagerFactory {

    private static final EntityManagerFactory instance = 
            Persistence.createEntityManagerFactory("datastore");
    
    private MyEntityManagerFactory() {}
    
    public static EntityManagerFactory get() {
        return instance;
    }
}
